/**
 * 判断是否是数组或者类数组
 * @param {Array|Object} obj
 * @returns
 */
function isArrayLike(obj) {
  const length = obj.length
  return typeof length === 'number' && length >= 0
}

export default isArrayLike
